import { axios } from '@/utils/request'

/**
 * 查询業主賬單
 *
 * @author anti
 * @date 2021-05-20 14:25:38
 */
export function ownerLeaseBillPage (parameter) {
  return axios({
    url: '/ownerLeaseBill/page',
    method: 'get',
    params: parameter
  })
}

export function ownerLeaseBillPageByLeaseId (parameter) {
  return axios({
    url: '/ownerLeaseBill/ownerLeaseBillPageByLeaseId',
    method: 'get',
    params: parameter
  })
}

/**
 * 業主賬單列表
 *
 * @author anti
 * @date 2021-05-20 14:25:38
 */
export function ownerLeaseBillList (parameter) {
  return axios({
    url: '/ownerLeaseBill/list',
    method: 'get',
    params: parameter
  })
}

export function detailByBillId (parameter) {
  return axios({
    url: '/ownerLeaseBill/detailByBillId',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加業主賬單
 *
 * @author anti
 * @date 2021-05-20 14:25:38
 */
export function ownerLeaseBillAdd (parameter) {
  return axios({
    url: '/ownerLeaseBill/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑業主賬單
 *
 * @author anti
 * @date 2021-05-20 14:25:38
 */
export function ownerLeaseBillEdit (parameter) {
  return axios({
    url: '/ownerLeaseBill/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑業主賬單交租
 *
 * @author anti
 * @date 2021-05-20 14:25:38
 */
 export function ownerLeaseBillJzEdit (parameter) {
  return axios({
    url: '/ownerLeaseBill/editJz',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑業主賬單退租清算
 *
 * @author anti
 * @date 2021-05-20 14:25:38
 */
 export function ownerLeaseBillTzQsEdit (parameter) {
  return axios({
    url: '/ownerLeaseBill/editQsTz',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑業主賬單撤销到账
 *
 * @author anti
 * @date 2021-05-20 14:25:38
 */
 export function ownerLeaseBillCxdzEdit (parameter) {
  return axios({
    url: '/ownerLeaseBill/editCxdz',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑業主賬單撤销到账
 *
 * @author anti
 * @date 2021-05-20 14:25:38
 */
 export function ownerLeaseBillEditBillPlan (parameter) {
  return axios({
    url: '/ownerLeaseBill/editBillPlan',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除業主賬單
 *
 * @author anti
 * @date 2021-05-20 14:25:38
 */
export function ownerLeaseBillDelete (parameter) {
  return axios({
    url: '/ownerLeaseBill/delete',
    method: 'post',
    data: parameter
  })
}

export function getOwnerBillDetailReadOnlyIn (parameter) {
  return axios({
    url: '/ownerLeaseBill/getOwnerBillDetailReadOnly/' + parameter,
    method: 'get'
  })
}

export function getOwnerBillDetailForEdit (parameter) {
  return axios({
    url: '/ownerLeaseBill/getOwnerBillDetailForEdit/' + parameter,
    method: 'get'
  })
}

export function getBillPlan (parameter) {
  return axios({
    url: '/ownerLeaseBill/getBillListByLeaseId/' + parameter,
    method: 'get'
  })
}

export function getOwnerBillNum () {
  return axios({
    url: '/ownerLeaseBill/getOwnerBillNum',
    method: 'get'
  })
}
